<template>
  <div>
    <!-- 头栏 -->
    <header class="header1">
      <div class="conr">
        <div class="n-conr">
          <div class="content-t">
            <h3 class="tou-left">Explore</h3>
            <nav aria-label="breadcrumb">
              <ol class="breadcrumb">
                <li class="breadcrumb-item"><a href="#">Home</a></li>
                <li class="breadcrumb-item" aria-current="page">
                  Explore
                </li>
              </ol>
            </nav>
          </div>
        </div>
      </div>
    </header>
    <!-- 循环内容 -->
    <main class="main1">
      <div class="lie" v-for="item in shuju" :key="item.id">
        <div class="lie-ti">
          <div class="explore">
            <img :src="item.mysrc" alt="explore-projects" />
            <a href="#"><span></span></a>
          </div>
          <div class="pro-content">
            <div class="p-c-top">
              <span class="t-ti">{{ item.ti }}</span>
              <p>
                <span class="biao-z"></span>
                <span class="time-t">{{ item.time }}</span>
              </p>
            </div>
            <a href="single-project.html">
              <h3 class="title">{{ item.content }}</h3>
            </a>
            <div class="p-range">
              <div class="p-r-content">
                <ul>
                  <li>{{ item.jin }}</li>
                  <li>{{ item.du }}</li>
                </ul>
                <div class="range-l"></div>
              </div>
            </div>
            <div class="p-goal">
              <span>
                {{ item.money }}
                <span>{{ item.jmoney }}</span>
              </span>
            </div>
          </div>
        </div>
      </div>
    </main>
  </div>
</template>

<script>
import shuju from './shuju'
export default {
  data() {
    return {
      shuju,
    }
  },
}
</script>

<style lang="scss">
* {
  margin: 0;
  padding: 0;
}
.header1 {
  background-image: url('./imgs/头栏.jpg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  width: 100%;
  height: 330px;
  display: block;
  .conr {
    width: 1200px;
    box-sizing: border-box;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    .n-conr {
      position: relative;
      width: 100%;
      padding-right: 15px;
      padding-left: 15px;
      .content-t {
        height: 330px;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        .tou-left {
          font-size: 60px;
          color: #fff;
          font-weight: 600;
          margin: 0px;
        }
        nav {
          .breadcrumb {
            background-color: transparent;
            padding: 0;
            margin: 0;
            display: flex;
            flex-wrap: wrap;
            list-style: none;
            border-radius: 0.25rem;
            .breadcrumb-item {
              font-size: 18px;
              font-weight: 500;
              color: #fff;
              a {
                color: #fff;
                padding: 0;
                text-decoration: none;
              }
            }
            .breadcrumb-item + .breadcrumb-item::before {
              color: #fff;
              content: '.';
              display: inline-block;
              padding: 0 0.5rem;
            }
          }
        }
      }
      .content-t:before {
        position: absolute;
        content: '';
        left: 0;
        bottom: 0;
        height: 37px;
        width: 37px;
        background: #29f0b4;
      }
    }
  }
}
.main1 {
  display: flex;
  flex-wrap: wrap;
  width: 1200px;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
  .lie {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    flex: 0 0 33.333333%;
    max-width: 30%;
    .lie-ti {
      margin-top: 30px;
      .explore {
        position: relative;
        overflow: hidden;
        img {
          width: 100%;
          transition: all 0.3s ease-out 0s;
          max-width: 100%;
        }
        img:hover {
          transform: scale(1.1, 1.1);
        }
        a {
          position: absolute;
          right: 20px;
          top: 20px;
          height: 34px;
          width: 34px;
          text-align: center;
          line-height: 34px;
          background: #fbfbfb;
          color: #222;
          border-radius: 50%;
          font-size: 14px;
          opacity: 0.5;
          span {
            display: inline-block;
            width: 15px;
            height: 15px;
            background-image: url('./imgs/灰心.jpg');
            background-size: 800%;
            background-position: -12px -145px;
          }
        }
      }
      .pro-content {
        padding: 40px 50px 34px;
        border: 1px solid #e9e9ee;
        background: #fff;
        border-top: 0;
        .p-c-top {
          align-items: center !important;
          display: flex !important;
          .t-ti {
            background: #674df0;
            line-height: 30px;
            padding: 0 15px;
            font-size: 11px;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 3px;
            color: #fff;
            margin-right: 10px;
          }
          p {
            font-size: 12px;
            font-weight: 500;
            color: #838694;
            line-height: 24px;
            .biao-z {
              position: relative;
              top: 3px;
              display: inline-block;
              box-sizing: border-box;
              width: 15px;
              height: 15px;
              background-image: url('./imgs/钟表.jpg');
              background-size: 1500%;
              background-position: -38px -8px;
              padding: 0;
              margin: 0;
            }
          }
        }
        a {
          text-decoration: none;
          color: black;
          .title {
            font-size: 24px;
            line-height: 36px;
            font-weight: 400;
            padding-top: 9px;
            padding-bottom: 15px;
          }
        }
        a:hover {
          color: #674df0;
        }
        .p-range {
          .p-r-content {
            ul {
              display: flex;
              justify-content: space-between;
              align-items: center;
              list-style-type: none;
              li {
                font-size: 14px;
                font-weight: 500;
                color: #838694;
              }
            }
            .range-l {
              width: 100%;
              height: 9px;
              background: #e9e9ee;
              position: relative;
              margin-top: 4px;
            }
            .range-l:before {
              position: absolute;
              content: '';
              left: 0;
              top: 0;
              height: 100%;
              width: 23%;
              background: #29f0b4;
            }
          }
        }
        .p-goal {
          margin-top: 13px;
          span {
            font-size: 16px;
            font-weight: 700;
            color: #1b1f2e;
            span {
              color: #674df0;
              font-size: 16px;
              font-weight: 700;
            }
          }
        }
      }
    }
  }
}
</style>
